package Day_04;

public class StandardPracticeDemo_For {
    public static void main(String[] args) {
         // input 5 times "Action is the footstep to succeed."
        for(int i=1;i<=5;i++){
            System.out.println("Action is the footstep to succeed.");
        }

        // 9*9 Multi_List
        for (int i = 1; i <= 9; i++) {
            for (int j = 1; j <= 9; j++) {
                if (j != 9) {
                    if (i * j >= 10) {
                        System.out.print(i + "*" + j + "=" + i * j + " ");
                    } else if (i * j < 10) {
                        System.out.print(i + "*" + j + "=" + i * j + "  ");
                    }
                } else if (j == 9) {
                    if (i * j >= 10) {
                        System.out.println(i + "*" + j + "=" + i * j);
                    } else if (i * j < 10) {
                        System.out.println(i + "*" + j + "=" + i * j);
                    }
                }
            }
        }
       // Sum
        int sum=0;
        for(int i=1;i<=100;i++){
            sum +=i;
        }
        System.out.println("Sum_from_1_to_100 :"+sum);

    }

}
